package com.witte.dao;

import com.witte.entity.Chance;
import com.witte.entity.Product;
import com.witte.entity.Service;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductMapper {
    int deleteByPrimaryKey(String  chanceno);

    int insert(Product record);

    Product selectByPrimaryKey(String chanceno);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    List<Product> selectAll();

    int insertSelective(Product record);
    List<Product> selectForPage( @Param("beginPage") Integer beginPage, @Param("pageSize") Integer pageSize);

    int getRecodeCount();

    List<Product> selectByProductName(@Param("name") String name,@Param("beginPage") Integer beginPage, @Param("pageSize") Integer pageSize);

    int getNameCount(@Param("name")String name);
}